package com.domor.dao.project;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerDao {

    Map<String,Object> getById(int id);
    List<Map<String,Object>> query(Map<String, Object> params);

    void insert(Map<String, Object> params);
    void update(Map<String, Object> params);
    void delete(Map<String, Object> params);


    List<Map<String, Object>> getContacts(int id);
    void insertContact(Map<String, Object> params);
    void deleteContact(Map<String, Object> params);

}
